package com.ems.mapper;

import com.ems.entity.TOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZZH
 * @since 2022-06-27
 */
@Mapper
public interface TOrderMapper extends BaseMapper<TOrder> {

    void dispatch(TOrder tOrder);

    void confirm(TOrder tOrder);

    List<TOrder> listDispatch();

    void finish(TOrder tOrder);

    Map<String, Object> detail();

    List<TOrder> getByOrderNumber(Integer orderId);
}
